#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
void intarr_to_string(int arr[], int cot, char str[])
{
	int i;
	for (i = 0; i <= cot; i++)
	{
		sprintf(str + strlen(str), "%d", arr[i]);
	}
}

int turn_off(int n, int arr[])
{
	int firstprint = 0;
	int cot = -1;
	int number, shu;
	char str[50];
	for (int i = n;; i /= 10)
	{
		if (i / 10 <= 0) break;
		shu = i % 10;
		if (shu == 0 && firstprint == 0)
			continue;
		else
		{
			cot++;
			arr[cot] = shu;
			firstprint = 1;
		}
	}
	intarr_to_string(arr, cot, str);
	number = atoi(str);
	return number;
}
int main()
{
	int n, unn;
	int arr[1000];
	scanf("%d", &n);
	unn = turn_off(n, arr);
	if (n < 0)
	{
		printf("%d", -unn);
	}
	else printf("%d", unn);
	return 0;
}